package com.itheima.homework;

import java.util.Scanner;

public class Test05 {
    public static void main(String[] args) {
        //键盘录入
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数:");
        int a = sc.nextInt();
        //调用方法并输出
        System.out.println(isOdd(a));
    }
//构造一个方法 返回值boolean
    public static boolean isOdd(int a) {
        if (a % 2 == 0) {
            return false;
        }
        return true;
    }
}
